<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link rel="stylesheet" href=""type="text/css">
  <script type="text/javascript" src=""></script>
</head>
<body>
<!--<p id="newP"></p>-->
<p id="js">JavaScript</p>
<div id="list">
  <p id="se">JavaSE</p>
  <p id="ee">JavaEE</p>
  <p class="me">JavaME</p>
</div>

<script>


 //  var js = document.getElementById("js");//已存在的节点
 //  var list = document.getElementById("list");
 //
 //  list.appendChild(js)
 //  //通过JS创建一个新的节点
 //  var newP = document.createElement('p');
 // //创建一个新的标签
 //  newP.id = 'newP';
 //  newP.innerText="Hello World";
 //  list.appendChild(newP)
 //
 //  var myScipt = document.createElement('script');
 //  myScipt.setAttribute('type','text/javascript')

    var ee = document.getElementById('ee');
    var js = document.getElementById('js');
 var list = document.getElementById('list');
    // list.insertBefore(js,ee);



</script>
</body>
</html>